import request from '@/utils/request'

// 查询考试记录答案列表
export function listPaperQuAnswer(query) {
  return request({
    url: '/business/paperQuAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询考试记录答案所有列表
export function listAllPaperQuAnswer(query) {
  return request({
    url: '/business/paperQuAnswer/listAll',
    method: 'get',
    params: query
  })
}

// 查询考试记录答案详细
export function getPaperQuAnswer(id) {
  return request({
    url: '/business/paperQuAnswer/getInfo/' + id,
    method: 'get'
  })
}

// 新增考试记录答案
export function addPaperQuAnswer(data) {
  return request({
    url: '/business/paperQuAnswer/add',
    method: 'post',
    data: data
  })
}

// 修改考试记录答案
export function updatePaperQuAnswer(data) {
  return request({
    url: '/business/paperQuAnswer/edit',
    method: 'post',
    data: data
  })
}

// 删除考试记录答案
export function delPaperQuAnswer(id) {
  return request({
    url: '/business/paperQuAnswer/remove/' + id,
    method: 'get'
  })
}
